import type { plottingScene } from '#/views/plotting';

class PlottingSceneManager {
  private currentScene: null | plottingScene = null;

  clear() {
    this.currentScene = null;
  }

  getScene(): null | plottingScene {
    return this.currentScene;
  }

  setScene(scene: plottingScene) {
    this.currentScene = scene;
  }
}

const plottingSceneManager = new PlottingSceneManager();

(window as any).plottingSceneManager = plottingSceneManager;

export default plottingSceneManager;
